package com.vondear.rxui.view.dialog;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.vondear.rxui.R;

/**
 * 描述：添加类的描述
 *
 * @author
 * @time 2020/4/30
 */
public class RxGuangGaoDialog extends RxDialog {

    private ImageView adImg;
    private ImageView btn_close;
    private LinearLayout rlBG;
    public RxGuangGaoDialog(Context context, int themeResId) {
        super(context, themeResId);
        initView();
    }

    public RxGuangGaoDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
        initView();
    }

    public RxGuangGaoDialog(Context context) {
        super(context);
        initView();
    }

    public RxGuangGaoDialog(Context context, float alpha, int gravity) {
        super(context, alpha, gravity);
        initView();
    }


    public ImageView getAdImg() {
        return adImg;
    }

    public ImageView getBtn_close() {
        return btn_close;
    }

    public LinearLayout getRlBG() {
        return rlBG;
    }

    private void initView() {
        View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_guangao, null);
        btn_close = dialogView.findViewById(R.id.btn_close);
        adImg = dialogView.findViewById(R.id.adImg);
        rlBG = dialogView.findViewById(R.id.rl_bg);
        setContentView(dialogView);
    }

}
